<html>
<head>
<title>Linkedin sign demo</title>
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
    api_key: 75zjpyvyxag513
    onLoad: onLinkedInLoad
    authorize: true

</script>

<script type="text/javascript">
function onLinkedInLoad() {
    IN.Event.on(IN, "auth", onLinkedInAuth);
}

function onLinkedInAuth() {
    IN.API.Profile("me")
        .fields("id", "firstName", "lastName", "industry")
        .result(displayProfiles)
        .error(displayProfilesErrors);
}

function displayProfiles(profiles) {
    member = profiles.values[0];
    document.getElementById("profiles").innerHTML =
        "<p id=\"" + member.id + "\">" + member.id + ":"
            + member.firstName + " "+ member.lastName
            + " works in the " + member.industry + " industry"
            + "</p>";
}

function displayProfilesErrors(error) {
    document.getElementById("profiles").innerHTML = "<p>Opps!</p>";
    console.log(error);
}
</script>

</head>
<body>

<script type="in/Login"> </script>
<div id="profiles"></div>

</body>
</html>